package ch.usi.inf.pf2.cell;

import ch.usi.inf.pf2.cell.Recognizer;
import junit.framework.TestCase;
/**
 * A RecognizerTest it tests if Recognizer class works or not.
 * 
 * @author elham.menzer@gmail.com
 */

public class RecognizerTest extends TestCase {

	
	    /**
	     * Default constructor for test class RecognizerTest
	     */
	    public RecognizerTest()
	    {
	    }

	    /**
	     * Sets up the test fixture.
	     *
	     * Called before every test case method.
	     */
	    protected void setUp()
	    {
	    }

	    /**
	     * Tears down the test fixture.
	     *
	     * Called after every test case method.
	     */
	    protected void tearDown()
	    {
	    }

	

		
		public void testRecognizeFormula()
		{
			Recognizer recogniz1 = new Recognizer();
			assertEquals("=a-b", recogniz1.recognizeFormula("=a-b sbsjdbsjdg m,sfsljg", 0));
		    assertEquals(null, recogniz1.recognizeFormula("sbsjdbsjdg m,sfsljg", 2));
	}
		
		
	}

